package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the per_ema_feb database table.
 * 
 */
@Entity
@Table(name="per_ema_feb")
@NamedQuery(name="PerEmaFeb.findAll", query="SELECT p FROM PerEmaFeb p")
public class PerEmaFeb implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_TNG_XKS_XKSID_GENERATOR1", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_TNG_XKS_XKSID_GENERATOR1")
	private int febid;

	private Timestamp febmaxtime;

	private Timestamp febmintime;

	private int febsc;

	private String febstat;

	private String juldz;

	private String maykm;

	//bi-directional many-to-one association to PerEmaAgt
	@OneToMany(mappedBy="perEmaFeb")
	private List<PerEmaAgt> perEmaAgts;

	//bi-directional many-to-one association to PerEmaZkz
	@ManyToOne
	@JoinColumn(name="ZKZID")
	private PerEmaZkz perEmaZkz;

	//bi-directional many-to-one association to PerIntention
	@ManyToOne
	@JoinColumn(name="IONID")
	private PerIntention perIntention;

	public PerEmaFeb() {
	}

	public int getFebid() {
		return this.febid;
	}

	public void setFebid(int febid) {
		this.febid = febid;
	}

	public Timestamp getFebmaxtime() {
		return this.febmaxtime;
	}

	public void setFebmaxtime(Timestamp febmaxtime) {
		this.febmaxtime = febmaxtime;
	}

	public Timestamp getFebmintime() {
		return this.febmintime;
	}

	public void setFebmintime(Timestamp febmintime) {
		this.febmintime = febmintime;
	}

	public int getFebsc() {
		return this.febsc;
	}

	public void setFebsc(int febsc) {
		this.febsc = febsc;
	}

	public String getFebstat() {
		return this.febstat;
	}

	public void setFebstat(String febstat) {
		this.febstat = febstat;
	}

	public String getJuldz() {
		return this.juldz;
	}

	public void setJuldz(String juldz) {
		this.juldz = juldz;
	}

	public String getMaykm() {
		return this.maykm;
	}

	public void setMaykm(String maykm) {
		this.maykm = maykm;
	}

	public List<PerEmaAgt> getPerEmaAgts() {
		return this.perEmaAgts;
	}

	public void setPerEmaAgts(List<PerEmaAgt> perEmaAgts) {
		this.perEmaAgts = perEmaAgts;
	}

	public PerEmaAgt addPerEmaAgt(PerEmaAgt perEmaAgt) {
		getPerEmaAgts().add(perEmaAgt);
		perEmaAgt.setPerEmaFeb(this);

		return perEmaAgt;
	}

	public PerEmaAgt removePerEmaAgt(PerEmaAgt perEmaAgt) {
		getPerEmaAgts().remove(perEmaAgt);
		perEmaAgt.setPerEmaFeb(null);

		return perEmaAgt;
	}

	public PerEmaZkz getPerEmaZkz() {
		return this.perEmaZkz;
	}

	public void setPerEmaZkz(PerEmaZkz perEmaZkz) {
		this.perEmaZkz = perEmaZkz;
	}

	public PerIntention getPerIntention() {
		return this.perIntention;
	}

	public void setPerIntention(PerIntention perIntention) {
		this.perIntention = perIntention;
	}

}